package com.cn.gmall.weball.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

@Controller

public class LongInController {

//    用来跳转页面 用login模板
    @GetMapping("/login.html")
    public String toLongin(HttpServletRequest request){
//从请求行中获取参数
        String originUrl = request.getParameter("originUrl");
//      将参数存放在request里面
        request.setAttribute("originUrl",originUrl);

        return "login";
    }
}
